<?php
/**
 * @author 段志岩
 * @date 2008.8.9
 * @summary 数据库配置类，用于支持多数据库服务器。
 */

require_once("Base.class.php");

class DbConfig extends Base{
	private $host;
	private $user;
	private $pass;
	private $name;

	public function __construct($host, $user, $pass, $name)
	{
		$this->host = $host;
		$this->user = $user;
		$this->pass = $pass;
		$this->name = $name;
	}
	public function getHost()
	{
		return $this->host;
	}
	public function getUser()
	{
		return $this->user;
	}
	public function getPass()
	{
		return $this->pass;
	}
	public function getName()
	{
		return $this->name;
	}
	public function __toString()
	{
		return $this->user . "@" . $this->host . " : " . $this->name;
	}
};
?>
